<?php
/**
 * Created by IDEA.
 * User: dinesh
 * Date: Feb 24, 2012
 * Time: 3:06:00 PM
 * To change this template use File | Settings | File Templates.
 */
    ?>
<script src="js/common.js"></script>
<script src="js/privilege.js"></script>
            
           
              <table cellpadding="0" cellspacing="0"  width="100%" >
				<tr>
					<td width="100%" bgcolor="#8785fa"><img src="images/app/logo_new.png" alt="banner" border="0" height="70" width="350" align="right"></td>

				</tr>
                 <tr><td bgcolor="#EBEBEB" width="100%" height="25px">..</td></tr>
			</table>
         
<link rel="stylesheet" type="text/css" href="css/dhtmlx/menu/dhtmlxmenu_dhx_skyblue.css">
<script src="js/jquery/jquery-1.7.1.min.js"></script>

<script src="js/dhtmlx/dhtmlxcommon.js"></script>
<script src="js/dhtmlx/menu/dhtmlxmenu.js"></script>
<script src="js/dhtmlx/menu/dhtmlxmenu_ext.js"> </script>
    <div id="menuAre" >
        <div id="menuObj"></div>
    </div>
<script>
var arrPrivi = new Array() ;
arrPrivi = <?php echo json_encode($_SESSION['permission']) ?>;
var menu;
function initMenu() {
    menu = new dhtmlXMenuObject("menuObj");
    menu.setIconsPath("images/dhtmlx/menu/imgs/");
    //menu.setSkin("dhx_skyblue");
    menu.attachEvent("onClick", menuClick);
    menu.enableDynamicLoading("?home/loadMenu&etc=" + new Date().getTime());
}
function menuClick(id) {
    var urlStr = menu.getUserData(id, "url");
   if(trim(urlStr)!='?'){
      window.location = urlStr;
   }
}

initMenu();
</script>




 
